//
//  LLT_VideoTableViewCell_TM.m
//  CoderLLT
//
//  Created by lanou3g on 15/12/15.
//  Copyright © 2015年 刘晓萌. All rights reserved.
//

#import "LLT_VideoTableViewCell_TM.h"
#import "UIImageView+WebCache.h"
#import "LLT_VideoModel.h"

@interface LLT_VideoTableViewCell_TM()


@property (weak, nonatomic) IBOutlet UILabel *videoCreateLabel;

@property (weak, nonatomic) IBOutlet UILabel *videoTitleLable;

@property (weak, nonatomic) IBOutlet UIImageView *videoImageView;

@property (weak, nonatomic) IBOutlet UIImageView *personImageView;

@property (weak, nonatomic) IBOutlet UILabel *personNameLabel;

@property (weak, nonatomic) IBOutlet UILabel *personCountLabel;

@end

@implementation LLT_VideoTableViewCell_TM

-(void)setVideoModel:(LLT_VideoModel *)videoModel{
    
    if (_videoModel != videoModel) {
        _videoModel = nil;
        _videoModel = videoModel;
    }
    [self setCell];
}
/**
 * 设置cell
 */
-(void)setCell{
    [self.videoImageView sd_setImageWithURL:[NSURL URLWithString:self.videoModel.thumb_img]];
    
    self.videoTitleLable.text = [NSString stringWithFormat:@"%@",self.videoModel.title];
    
    [self.personImageView sd_setImageWithURL:[NSURL URLWithString:self.videoModel.avatar]];
    
    self.personCountLabel.text = [NSString stringWithFormat:@"%@次播放",self.videoModel.play_times];
    
    //self.videoCreateLabel.text = [NSString stringWithFormat:@"%@的视频列表",self.videoModel.username];
    
    self.personNameLabel.text = [NSString stringWithFormat:@"%@",self.videoModel.username];
   
}


- (void)awakeFromNib {
    // Initialization code
}
/**
 * Button响应事件
 */
- (IBAction)downLoadDataSender:(id)sender {
    
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
